package com.example.HeadFirstDemo.Singleton;

import org.junit.Test;

public class TestCase {
//    public static void main(String[] main){
//        System.out.println(Type.valueOf("A").value);
//    }
    @Test
    public void testDemo1(){
        System.out.println(SingletonDemo1.getInstance());
        System.out.println(SingletonDemo1.getInstance());
    }

    @Test
    public void testDemo2(){
        System.out.println(SingletonDemo2.getInstance());
        System.out.println(SingletonDemo2.getInstance());
    }

    @Test
    public void testDemo3(){
        System.out.println(SingletonDemo3.getInstance());
        System.out.println(SingletonDemo3.getInstance());
    }
}


